package bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Fileinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "fileinfo", catalog = "es_knowledge_base")
public class Fileinfo implements java.io.Serializable {

	// Fields

	private String fileId;
	private String fileName;
	private Integer belongTo;
	private String filePath;
	private Double fileSize;
	private Timestamp uploadDatetime;
	private Integer downloadCount;
	private String uploadUser;
	private String filePermission;
	private String fileDesc;

	// Constructors

	/** default constructor */
	public Fileinfo() {
	}

	/** minimal constructor */
	public Fileinfo(String fileId, String fileName, Integer belongTo,
			String filePath, Double fileSize, Timestamp uploadDatetime,
			Integer downloadCount, String uploadUser) {
		this.fileId = fileId;
		this.fileName = fileName;
		this.belongTo = belongTo;
		this.filePath = filePath;
		this.fileSize = fileSize;
		this.uploadDatetime = uploadDatetime;
		this.downloadCount = downloadCount;
		this.uploadUser = uploadUser;
	}

	/** full constructor */
	public Fileinfo(String fileId, String fileName, Integer belongTo,
			String filePath, Double fileSize, Timestamp uploadDatetime,
			Integer downloadCount, String uploadUser, String filePermission,
			String fileDesc) {
		this.fileId = fileId;
		this.fileName = fileName;
		this.belongTo = belongTo;
		this.filePath = filePath;
		this.fileSize = fileSize;
		this.uploadDatetime = uploadDatetime;
		this.downloadCount = downloadCount;
		this.uploadUser = uploadUser;
		this.filePermission = filePermission;
		this.fileDesc = fileDesc;
	}

	// Property accessors
	@Id
	@Column(name = "file_id", unique = true, nullable = false, length = 45)
	public String getFileId() {
		return this.fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	@Column(name = "file_name", nullable = false, length = 100)
	public String getFileName() {
		return this.fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	@Column(name = "belong_to", nullable = false)
	public Integer getBelongTo() {
		return this.belongTo;
	}

	public void setBelongTo(Integer belongTo) {
		this.belongTo = belongTo;
	}

	@Column(name = "file_path", nullable = false, length = 200)
	public String getFilePath() {
		return this.filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	@Column(name = "file_size", nullable = false, precision = 22, scale = 0)
	public Double getFileSize() {
		return this.fileSize;
	}

	public void setFileSize(Double fileSize) {
		this.fileSize = fileSize;
	}

	@Column(name = "upload_datetime", nullable = false, length = 0)
	public Timestamp getUploadDatetime() {
		return this.uploadDatetime;
	}

	public void setUploadDatetime(Timestamp uploadDatetime) {
		this.uploadDatetime = uploadDatetime;
	}

	@Column(name = "download_count", nullable = false)
	public Integer getDownloadCount() {
		return this.downloadCount;
	}

	public void setDownloadCount(Integer downloadCount) {
		this.downloadCount = downloadCount;
	}

	@Column(name = "upload_user", nullable = false, length = 45)
	public String getUploadUser() {
		return this.uploadUser;
	}

	public void setUploadUser(String uploadUser) {
		this.uploadUser = uploadUser;
	}

	@Column(name = "file_permission", length = 45)
	public String getFilePermission() {
		return this.filePermission;
	}

	public void setFilePermission(String filePermission) {
		this.filePermission = filePermission;
	}

	@Column(name = "file_desc", length = 200)
	public String getFileDesc() {
		return this.fileDesc;
	}

	public void setFileDesc(String fileDesc) {
		this.fileDesc = fileDesc;
	}

}